package com.stlm2.dems.entity;

/**
 * Created by zlq on z017/10/24.
 */
public enum ShopLevel {
	CanhfKu(1) {
		public String toString() {
			return "仓库";
		}
	},
	Shop(2) {
		public String toString() {
			return "店铺";
		}
	},
	ServiceStand(3) {
		public String toString() {
			return "服务站";
		}
	};

	private final int val;

	ShopLevel(int n) {
		val = n;
	}

	public int getIntValue() {
		return val;
	}

	public static ShopLevel getByIntValue(int n) {
		switch (n) {
			case 1:
				return CanhfKu;
			case 2:
				return Shop;
			case 3:
				return ServiceStand;
			default:
				return null;
		}
	}
}
